<?php
/**
 * Created by PhpStorm.
 * User: ly
 * Date: 2017\12\11 0011
 * Time: 17:12
 */
use yii\helpers\Url;

$this->title = "我参与的项目";
//'total'=>$total,'hlCount'=>$hlCount,'likeCount'=>$likeCount,'packageState'=>$packageState,'teamCount'=>$teamCount
//echo '<ul><li>我参与的：'.$total.'</li><li>标记亮点的：'.$hlCount.'</li><li>我关注的：'.$likeCount.'</li></ul>';
//echo '<ul><li>无：'.$packageState[1].'</li><li>启动尽调：'.$packageState[2].'</li><li>已立项：'.$packageState[3].'</li><li>立项待跟进：'.$packageState[4].'</li></ul>';
$this->registerCssFile('@web/css/index.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/mask.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
//$this->registerCssFile('@web/css/AssetPackageDetails.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
//$this->registerCssFile('@web/css/paging.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
//$this->registerCssFile('@web/css/notEdit.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/select2.min.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/defaultTheme.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/myProject.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
?>


<style type="text/css">
    .wrap > .container-fluid > .container {
        width: 100%!important;
    }
    .navbar{
        border: none;
    }

.myProject-table {
	width: 100%;
}
</style>
<!--资产包详情搜索部分开始-->
<div class="myBagSeachBox">
    <div class="container">
        <div class="top">
            <a href="<?php  echo Url::toRoute('/site/index',true);?>">办公大厅</a> >
            <a href="<?php  echo Url::toRoute('/project',true);?>">资产管理</a> >
            <a href="jascript:;" class="pagedetails">  我的项目</a>
        </div>
        <ul id="myTab" class="nav nav-tabs">
            <li class="active">
                <a href="/my-project/my-involvement">
                    我参与的项目<!-- （<span>3</span>） -->
                </a>
            </li>
            <li>
                <a href="/my-project/my-high-lights">
                    我标记的亮点项目<!-- （<span>3</span>） -->
                </a>
            </li>
            <li>
                <a href="/my-project/my-like">
                    我关注的项目<!-- （<span>3</span>） -->
                </a>
            </li>
        </ul>
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade in active " id="myPortfolioPackage">
                <!-- <input  class="search" list='searchLi'  placeholder="输入资产包关键字/申请人快速查询" /> -->
                <div class="searchalls clearfix">
                    <form method="get" id="involvementForm">
                        <input type="text" name="keyWords" id="keyWords" class="pull-left" value="<?php echo Yii::$app->request->get('keyWords','');?>" placeholder="输入资产包关键字/项目经理快速查询" list='searchLi'>
                        <input type="hidden" name="status" id="status" value="<?php echo Yii::$app->request->get('status','');?>">
                        <a href="javascript:involvementForm.submit();" id="subInvolvementForm"><img src="/image/officeHall/searchs.png" class="pull-right"></a>
                        <datalist id='searchLi'>
                            <?php
                            foreach ($users as $user){
                                echo '<option value="'.$user['realname'].'">'.$user['realname'].'</option>';
                            }
                            ?>
                        </datalist>
                    </form>
                </div>
                <div class="state clearfix">
                    <div class="top clearfix">
                        <span class="pull-left">当前状态</span>
                        <span class="pull-left <?php echo Yii::$app->request->get('status','')==''?'stateActive':'';?>"  status="" onclick="$('#status').val('');involvementForm.submit();">不限</span>
                        <span class="pull-left <?php echo Yii::$app->request->get('status','')==1?'stateActive':'';?>" status="1" onclick="$('#status').val('1');involvementForm.submit();">无</span>
                        <span class="pull-left <?php echo Yii::$app->request->get('status','')==4?'stateActive':'';?>" status="4" onclick="$('#status').val('4');involvementForm.submit();">已立项</span>
                        <span class="pull-left <?php echo Yii::$app->request->get('status','')==5?'stateActive':'';?>" status="5" onclick="$('#status').val('5');involvementForm.submit();">立项待跟进</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?PHP
echo $this->render('common-list', [ 'pages' => $pages, 'data' => $data,]);
?>

<!-- 固定表格头插件 -->
<script type="text/javascript" src="/js/jquery.fixedheadertable.js"></script>
<script type="text/javascript" src="/js/index.js"></script>
<script type="text/javascript" src="/js/paging.js"></script>
<script type="text/javascript" src="/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="/js/messages_zh.js"></script>
<script type="text/javascript" src="/js/select2.min.js"></script>
<!--//本页js代码-->
<script type="text/javascript" src="/js/myProject.js"></script>
<?php $this->beginBlock('enterClick') ?>
    $(function($) {
        $(this).keydown(function (e){
            if(e.which == "13"){
                involvementForm.submit();
            }
        })
    });
<?php $this->endBlock() ?>
<?php $this->registerJs($this->blocks['enterClick'], \yii\web\View::POS_END); ?>